using System.Diagnostics;

namespace Gonte
{
    /// <summary>
    /// Executes a process and allows the retrieval of the results
    /// </summary>
    public class ProcessExecutor
    {
        /// <summary>
        /// Spawns a process
        /// </summary>
        /// <param name="processInfo"></param>
        public static void Execute(ProcessStartInfo processInfo)
        {
            Process process = new Process();

            process.StartInfo = processInfo;
            process.Start();
            process.WaitForExit();
        }
    }
}
